<?php
require_once(PATH_HTDOCS.'classes/saetv2.ex.class.php');
require_once(PATH_HTDOCS.'Smarty3/Smarty.class.php');

function uReadMeAutoload($class_name) {
	require_once (PATH_HTDOCS.'classes/'.$class_name.'.class.php');
}
spl_autoload_register('uReadMeAutoload');			// 为了smarty 3

//if (defined('PATH_SMARTY_TEMPLATE') and defined('PATH_SMARTY_CACHE') and defined('PATH_SMARTY_COMPILE')) {
//	$S = new Smarty();
//	global $S;
//	$S->setTemplateDir(PATH_SMARTY_TEMPLATE);
//	$S->setCompileCheck(Smarty::COMPILECHECK_CACHEMISS);
////	$S->compile_locking = false;
//} else die();

$db = new db();
global $db;
?>